export const optionConfig = {
    tooltip: {
        trigger: 'item',
        formatter: function (e, t, n) {
            return e.seriesName + "<br />" + e.name + "：" + e.value
        }
    },
    legend: {
        y: 'top',
        itemWidth: 8,
        itemHeight: 8,
        data: ['圆','菱形'],
        textStyle: {
            color: '#fff',
            fontSize: 8
        }
    },
    grid: {
        left: "3%",
        right: "4%",
        bottom: "3%",
        top: '15%',
        containLabel: true
    },
    xAxis: {
        scale: true,
        axisTick: {
            show: false
        },
        axisLine: {
            lineStyle: {
                color: '#FFF'
            }
        },
        // axisLabel: { // 配置字体的颜色
        //     color: '#000'
        // }
    },
    yAxis: [ {
        type: 'value',
        name: '',
        min: 0,
        max: 500,
        position: 'left',
        axisLine: {
            lineStyle: {
                color: '#FFF'
            }
        },
        axisLabel: {
            formatter: '{value} '
        },
        axisTick: {
            show: false
        },
    },
        {
            type: 'value',
            name: '',
            position: 'right',
            // min: 0,
            // max: 200,
            axisLine: {
                lineStyle: {
                    color: '#FFF'
                }
            },
            axisLabel: {
                formatter: '{value}'
            }
        }],
    series: [
        {
            type: 'effectScatter',
            symbolSize: 10,
            data: []
        },
        {
            name: '菱形',
            type: 'scatter',
            symbol:'diamond',
            data: [[176.2, 66.8], [160.2, 75.2],
                [172.5, 55.2], [170.9, 54.2], [172.9, 62.5], [153.4, 42.0], [160.0, 50.0],
                [147.2, 49.8], [168.2, 49.2], [175.0, 73.2], [157.0, 47.8], [167.6, 68.8],
                [166.8, 57.2], [176.5, 87.8], [170.2, 72.8],
            ],
            itemStyle: {
                normal: {
                    opacity: 1,
                    shadowBlur: 0,
                    shadowOffsetX: 0,
                    shadowOffsetY: 0,
                    color: 'rgb(255, 255, 0)',
                    // shadowColor: 'rgb(255, 255, 0)'
                }
            },
        },{
            name: '圆',
            type: 'scatter',
            yAxisIndex: 1,
            symbol:'diamond',
            itemStyle: {
                normal: {
                    opacity: 1,
                    shadowBlur: 0,
                    shadowOffsetX: 0,
                    shadowOffsetY: 0,
                    color: 'rgb(255,153,0)',
                    // shadowColor: 'rgb(255,153,0)'
                }
            },
            data: [
                [159.5, 50.6], [175.0, 82.5],[161.2, 51.6], [167.5, 59.0], [159.5, 49.2], [157.0, 63.0], [155.8, 53.6],
                [170.0, 59.0], [159.1, 47.6], [166.0, 69.8]
            ]
        },]
};

